#include<stdio.h>
int main ()
{
	char cCstring[100];
	int iIndex ,iWord=1;
	char cBlank;
	gets (cCstring);
	
	if(cCstring[0]=='\0')
	{
		printf("There is no char!\n");
		
	 } 
	 else if(cCstring[0]==' ')
	 {
	 	printf("First char just is a blank!\n");
	 	
	 }
	 else
	 {
	 	for(iIndex=0;cCstring[iIndex]!='\0';iIndex++)
	 	{
	 		cBlank=cCstring[iIndex];
	 		if (cBlank==' ')
	 		{
	 			iWord++;
			 }
		 }
		 printf("%d\n",iWord);
	 }
	 return 0;
 } 
